import Base from "./base";

const api = new Base();

export const getAlbumList = (
  data: AlbumFilter
): Promise<PageResult<AlbumItem>> => api.get("/album/plat/list", data);
export const getAlbumDetail = (
  albumId: number
): Promise<AlbumDetail> => api.get(`/album/${albumId}`);
export const delAlbum = (
  albumId: number
): Promise<string> => api.delete(`/album/${albumId}`);
export const updateAlbum = (
  albumId: number,
  data: AlbumPatchData
): Promise<string> => api.patchForm(`/album/${albumId}`, data);
